﻿using Idte.Core.Infrastructure.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AppDesign.Models.ManageType
{
    [AggregateAttribute]
    public class AppTypes
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public Guid UniqueId { get; set; }
        public string ObjName { get; set; }
        public ICollection<OutsideRelation> OutsideRelationships { get; set; }

        public ICollection<AppLayout> AppLayouts { get; set; }

        [DisableCascade("AppTypesPar", "AppParId")]
        public virtual ICollection<AppRelation> Parent { get; set; }
        [DisableCascade("AppTypesChild", "AppChildId")]
        public virtual ICollection<AppRelation> Children { get; set; }

    }
}